<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户编号" prop="ESAB001">
                <el-input v-model="form.ESAB001" :disabled="!isAdd" >
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户简称" prop="ESAB030">
                <el-input v-model="form.ESAB030">
                </el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户项目状态" prop="ESAB002">
                <el-select v-model="form.ESAB002" clearable>
                    <el-option v-for="item in selectOptions.esab002Options" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="主要联系人" prop="ESAB003">
                <el-input v-model="form.ESAB003_NAME" :disabled="!isAdd">
                    <i class="el-icon-search el-input__icon" @click="openEsab003" slot="suffix" v-show="isAdd"></i>
                </el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="电话" prop="ESAB004">
                <el-input v-model="form.ESAB004"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="手机号" prop="ESAB005">
                <el-input v-model="form.ESAB005"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="传真号" prop="ESAB006">
                <el-input v-model="form.ESAB006"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="e-mail" prop="ESAB007">
                <el-input v-model="form.ESAB007"></el-input>
            </el-form-item>
        </el-col>


        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="产品线" prop="ESAB014">
                <el-input v-model="form.ESAB014_NAME">
                    <i class="el-icon-search el-input__icon" @click="openEsab014" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="ERP产品线" prop="ESAB029">
                <el-select v-model="form.ESAB029" clearable>
                    <el-option v-for="item in selectOptions.esab029Options" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="数据库" prop="ESAB015">
                <el-select v-model="form.ESAB015" clearable>
                    <el-option v-for="item in selectOptions.esab015Options" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>


        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="维保服务人员" prop="ESAB025">
                <el-input v-model="form.ESAB025_NAME">
                    <i class="el-icon-search el-input__icon" @click="openTsc('ESAB025')" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="维保服务代理" prop="ESAB026">
                <el-input v-model="form.ESAB026_NAME">
                    <i class="el-icon-search el-input__icon" @click="openTsc('ESAB026')" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="营运区" prop="ESAB008">
                <el-select v-model="form.ESAB008" placeholder="请选择" @change="changeEsab008" clearable>
                    <el-option v-for="item in selectOptions.esab008Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="省份" prop="ESAB009">
                <el-select v-model="form.ESAB009" placeholder="请选择" @change="changeEsab009" clearable>
                    <el-option v-for="item in selectOptions.esab009Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="城市" prop="ESAB010">
                <el-select v-model="form.ESAB010" placeholder="请选择" @change="changeEsab010" clearable>
                    <el-option v-for="item in selectOptions.esab010Options"
                               :key="item.GWAD002"
                               :label="item.GWADL004"
                               :value="item.GWAD002">
                    </el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="地址" prop="ESAB011">
                <el-input v-model="form.ESAB011"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="联系人一" prop="ESAB012">
                <el-input v-model="form.ESAB012"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="联系人二" prop="ESAB013">
                <el-input v-model="form.ESAB013"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否版本升级" prop="ESAB016">
                <el-select v-model="form.ESAB016" clearable>
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="升级日期">
                <el-date-picker
                        type="date"
                        v-model="form.ESAB017"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="原版本" prop="ESAB018">
                <el-input v-model="form.ESAB018"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="安装时间" prop="ESAB019">
                <el-date-picker
                        type="date"
                        v-model="form.ESAB019"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="转维保时间" prop="ESAB020">
                <el-date-picker
                        type="date"
                        v-model="form.ESAB020"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否已签维护合约">
                <el-select v-model="form.ESAB021" clearable>
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="最近合约日期" prop="ESAB022">
                <el-date-picker
                        type="date"
                        v-model="form.ESAB022"
                        value-format="yyyy-MM-dd"
                        style="width: 100%">
                </el-date-picker>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="是否已停止服务">
                <el-select v-model="form.ESAB023" clearable>
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code" ></el-option>
                </el-select>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="等级" prop="ESAB024">
                <el-input v-model="form.ESAB024"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="备注" prop="ESAB028">
                <el-input v-model="form.ESAB028"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="客户连线方式" prop="ESAB027">
                <el-input type="textarea" v-model="form.ESAB027"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/esai120_edit"], $.noop);
</script>